#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cstdio>
#include <string>
#include <vector>

#define pb push_back

using namespace std;

const int base = 1000000009;
const int key = 239;

string dig2(int x){
	string res = "";
	res += (char)('0' + x / 10);
	res += (char)('0' + x % 10);
	return res;
}

int main(){
	
	ofstream F1("file1.txt");
	ofstream F2("file2.txt");
	
	int n = 1000, m = 1000, k = 3;
	for (int i = 0; i < n; i++){
		for (int j = 0; j < k; j++){
			F1 << (char)('A' + rand() % 26);
		}
		F1 << "\n";
	}
	for (int i = 0; i < m; i++){
		for (int j = 0; j < k; j++){
			F2 << (char)('A' + rand() % 26);
		}
		F2 << "\n";
	}
	F1.close();
	F2.close();
/*	
	ofstream out("answer00.txt");
	for (int i = 0; i < n; i++) out << s[i] << "\n";
	out.close();
*/	
	return 0;
}